package com.niit.domain;

import java.util.Date;

public class Product {
    private int id;
    private String sname;
    private String img;
    private Date pubdate;
    private int click_num;
    private String introduce;
    private int is_good;

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", sname='" + sname + '\'' +
                ", img='" + img + '\'' +
                ", pubdate=" + pubdate +
                ", click_num=" + click_num +
                ", introduce='" + introduce + '\'' +
                ", is_good=" + is_good +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getPubdate() {
        return pubdate;
    }

    public void setPubdate(Date pubdate) {
        this.pubdate = pubdate;
    }

    public int getClick_num() {
        return click_num;
    }

    public void setClick_num(int click_num) {
        this.click_num = click_num;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public int getIs_good() {
        return is_good;
    }

    public void setIs_good(int is_good) {
        this.is_good = is_good;
    }

    public Product() {
    }

    public Product(int id, String sname, String img, Date pubdate, int click_num, String introduce, int is_good) {
        this.id = id;
        this.sname = sname;
        this.img = img;
        this.pubdate = pubdate;
        this.click_num = click_num;
        this.introduce = introduce;
        this.is_good = is_good;
    }
}
